﻿
using System.Collections.Generic;
using ZYLFramework.UI;

namespace Game.UI
{
    public enum MapState
    {
        Empty,
        Occupied,
    }

    public class MapItemInfo
    {
        public MapState MapState;
        public int StepsIndex;
        public int Cost;
        public int TransmissionIndex;

        public MapItemInfo()
        {
            MapState = MapState.Empty;
            StepsIndex = 0;
            Cost = 1;
            TransmissionIndex = -1;
        }
    }
    
    public class AStartPanelModel:UIModel
    {
        public List<MapItemInfo> MapItemInfoList;


        public override void Init()
        {
            base.Init();
            MapItemInfoList = new List<MapItemInfo>();
        }
        
        public void ClearMapInfoStepsIndex()
        {
            foreach (var v in MapItemInfoList)
            {
                v.StepsIndex = 0;
            }
        }
    }
}
